package Unit

import (
	. "GameLogic/GameConfig"
	xml "misc/dom4g"
)

type IMover interface {
}

type MoverInfo struct {
	Name string
	Type string
}

type MoverCreateFunc func(*xml.Element) IMover

var MoverCreateFuncMap map[string]MoverCreateFunc

func CreateMover(moverName string) IMover {
	xmlMover := GetXmlMover(moverName)
	CreateFn := MoverCreateFuncMap[xmlMover.Name()]
	return CreateFn(xmlMover)
}
